package com.ntl.webcore.system.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ntl.webcore.common.annotation.Excel;
import com.ntl.webcore.common.core.domain.BaseEntity;

/**
 * 21.错误日志对象 sys_error_log
 * 
 * 
 * @date 2021-03-31
 */
public class SysErrorLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @Excel(name = "ID")
    private String id;

    /** 错误编码 */
    @Excel(name = "错误编码")
    private String errorCode;

    /** 错误内容 */
    @Excel(name = "错误内容")
    private String errorMessage;

    /** 钉钉告警次数 */
    @Excel(name = "钉钉告警次数")
    private Integer dingTimes;

    /** 阅读状态（0=未读&1=已读） */
    @Excel(name = "阅读状态", readConverterExp = "0=未读,1=已读")
    private String readStatus;

    /** 异常服务器IP */
    @Excel(name = "异常服务器IP")
    private String serverIp;

    /** 异常服务器服务ID */
    @Excel(name = "异常服务器服务ID")
    private String serviceId;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 日志时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "日志时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date logTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setErrorCode(String errorCode) 
    {
        this.errorCode = errorCode;
    }

    public String getErrorCode() 
    {
        return errorCode;
    }
    public void setErrorMessage(String errorMessage) 
    {
        this.errorMessage = errorMessage;
    }

    public String getErrorMessage() 
    {
        return errorMessage;
    }
    public void setDingTimes(Integer dingTimes) 
    {
        this.dingTimes = dingTimes;
    }

    public Integer getDingTimes() 
    {
        return dingTimes;
    }
    public void setReadStatus(String readStatus) 
    {
        this.readStatus = readStatus;
    }

    public String getReadStatus() 
    {
        return readStatus;
    }
    public void setServerIp(String serverIp) 
    {
        this.serverIp = serverIp;
    }

    public String getServerIp() 
    {
        return serverIp;
    }
    public void setServiceId(String serviceId) 
    {
        this.serviceId = serviceId;
    }

    public String getServiceId() 
    {
        return serviceId;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setLogTime(Date logTime) 
    {
        this.logTime = logTime;
    }

    public Date getLogTime() 
    {
        return logTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("errorCode", getErrorCode())
            .append("errorMessage", getErrorMessage())
            .append("dingTimes", getDingTimes())
            .append("readStatus", getReadStatus())
            .append("serverIp", getServerIp())
            .append("serviceId", getServiceId())
            .append("operator", getOperator())
            .append("logTime", getLogTime())
            .append("remark", getRemark())
            .toString();
    }
}
